package com.lsq.tucao.express.service;

import com.lsq.tucao.express.bean.po.TucaoDetail;
import com.lsq.tucao.express.response.JsonResult;

/**
* @Author linshouqiang
* @Description service接口
* @Date 2020/11/24 18:21
*/
public interface TucaoExpressService {

    /**
    * 发表吐槽
    */
    JsonResult addTucao(TucaoDetail tucaoDetail);

//    /**
//     * @author lsq
//     * @description 给吐槽点赞
//     * @param tucaoId 被点赞的吐槽id
//     * @return com.lsq.tucao.express.response.JsonResult
//     * @create 2021/4/20 22:17
//     */
//    JsonResult likeTucao(Long tucaoId);

    /**
     * 分页获取吐槽数据
     */
    JsonResult getPageTucao(Integer current,Integer size,String sort,Integer verify,Boolean getVerified);

    /**
     * 根据id获取吐槽数据
     * @param tucaoId id
     * @return
     */
    JsonResult getTucaoById(Long tucaoId);

    /**
     * @author lsq
     * @description
     * @param tucaoId id
     * @param verify true：审核通过；false：审核未通过
     * @return com.lsq.tucao.express.response.JsonResult
     * @create 2021/4/16 12:36
     */
    JsonResult verifyTucao(Long tucaoId,Boolean verify);

    /**
     * @author htt
     * @description 按输入的用户名查找吐槽数据
     * @param current 页码
     * @param size 每页条数
     * @param username 用户名
     * @param sort 吐槽类别
     * @return com.lsq.tucao.express.response.JsonResult
     * @create 2021/4/16 12:36
     */
    JsonResult searchTucaoByUsername(Integer current,Integer size,String username,String sort);

    /**
     * @author htt
     * @description 按输入的内容在当前吐槽类别下查找吐槽数据
     * @param current 页码
     * @param size 每页条数
     * @param content 吐槽内容
     * @param sort 吐槽类别
     * @return com.lsq.tucao.express.response.JsonResult
     */
    JsonResult searchTucaoByContent(Integer current,Integer size,String content,String sort);

    /**
     * @author htt
     * @description 按条件进行排序吐槽数据
     * @param current 页码
     * @param size 每页条数
     * @param sortBy 排序条件
     * @param sort 吐槽类别
     * @return com.lsq.tucao.express.response.JsonResult
     */
    JsonResult sortTucaoBy(Integer current,Integer size,String sortBy,String sort);


}
